/**
 * base64加解密函数
 */
const buf=Buffer.from('hello','utf-8')
const str=buf.toString('base64')

console.log(Buffer.from(buf.toString('base64'),'utf-8'))
console.log(str)